package com.maybach.workflow.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.workflow.common.model.FlowTaskDO;
import com.maybach.workflow.common.query.FlowTaskQuery;

import java.util.List;


/**
 * Manager for FlowTask.
 */
public interface FlowTaskManager {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowTaskQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowTaskQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(FlowTaskDO record);

    /**
     * select by query condition.
     */
    List<FlowTaskDO> selectByQuery(FlowTaskQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<FlowTaskDO> selectByQueryWithPage(FlowTaskQuery query);

    /**
     * select by primary key.
     */
    FlowTaskDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( FlowTaskDO record,  FlowTaskQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(FlowTaskDO record, FlowTaskQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowTaskDO record);
}